<?php //$archieves = getarchives_where('type=monthly&&cat=1');
?>

<?php if (have_posts()) : ?>

  <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>

  <ul>
  <?php 
    $n = 0;
    while (have_posts()) : the_post(); ?>
    <?php $cat = get_the_category(); 
      if($cat[0]->cat_ID == 1){
    ?>
    <li <?php post_class() ?>>
    
        <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
    </li>
    <?php } $n++; ?>

  <?php endwhile; ?>
  </ul>

<?php endif; ?>
